package com.pkk.penguin.frame.know.boot.view.view.zhiyi;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @description: 之易同步服务控制器
 * @author: peikunkun
 * @create: 2020-05-20 10:01
 **/
@Slf4j
@Controller
@RequestMapping("vZhiYi")
public class ZySynchAppletViews {


  @Value("${com.pkk.config.zhiyi.socket.url}")
  private String socketUrl;


  /**
   * @Description: 之易同步服务
   * @return: java.lang.String
   * @Author: peikunkun
   * @Date: 2020/5/20 0020 上午 10:44
   */
  @RequestMapping(value = "zysynch")
  public String zySynch(ModelMap map) {
    map.addAttribute("socketUrl", socketUrl);
    return "zysynch/zysynch";
  }


  /**
   * @Description: 之易数据库操作
   * @Param: map
   * @return: java.lang.String
   * @Author: peikunkun
   * @Date: 2020/6/1 0001 下午 1:56
   */
  @RequestMapping(value = "zyDb")
  public String zyDb(ModelMap map) {
    map.addAttribute("socketUrl", socketUrl);
    return "zydb/zydb";
  }


}
